package com.etc.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.etc.entity.Hobby;
import com.etc.service.HobbyService;

@Controller
@RequestMapping(value="hobby")
public class HobbyController {
	@Resource
	HobbyService hobbyService;
	
	@RequestMapping(value="findall")
	@ResponseBody
	public List<Hobby> findAllHobby(){
		
		return hobbyService.findAllHobby();
		
	}
	
}
